<div ng-controller="loginCtr" class="login-page container">

    <app-top-bar attr-title="topTitle" attr-sub="register" attr-link="register"></app-top-bar>
    <form class="main" name="loginForm">
        <div class="user">
            <input type="text"
                   name="user"
                   ng-model="user"
                   ng-blur="isUser(user)"
                   required
            >
            <span>会员名</span>
            <div>
                <i ng-show="isUserBool && loginForm.user.$touched">*该用户不存在</i>
            </div>
        </div>
        <div class="psw">
            <input type="password"
                   name="psw"
                   ng-model="psw"
                   required
            >
            <span>密码</span>
            <div>
                <i ng-show="isPswBool && loginForm.psw.$touched">*密码错误</i>
            </div>
        </div>
        <!--<p class="login">登录</p>-->
        <input type="submit" value="登录" class="login" ng-click="login(psw)">
        <a href="javascript:;">忘记密码</a>
        <a ui-sref="register">注册账号</a>
    </form>

    <down-bars attr-title="moreType"></down-bars>
</div>